{#<!DOCTYPE html>#}
{#<html lang="en">#}
{#<head>#}
{#    <meta charset="UTF-8">#}
{#    {% if title %}#}
{#        <title>{{ title }} - 博客</title>#}
{#    {% else %}#}
{#        <title>欢迎来到博客!</title>#}
{#    {% endif %}#}
{#</head>#}
{#<body>#}
{#<h1>Hello, {{ user.username }}!</h1>#}
{#{% for post in posts %}#}
{#    <div><p>{{ post.author.username }} 说: <b>{{ post.body }}</b></p></div>#}
{##}
{#{% endfor %}#}
{##}
{##}
{#</body>#}
{#</html>#}

{% extends 'base.html' %}
{% block content %}
<h1>你好呀， {{ current_user.username }}!</h1>
{% for post in posts %}
<div><p>{{ post.author.username }} 说：<b>{{ post.body }}</b></p></div>
{% endfor %}
{% endblock %}


